﻿using Architecture.Domain.Dto;
using Architecture.Domain.RBAC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Service
{
    public interface ILeaveService
    {
        Task<int> LeaveAdd(Leaved model);
        //部门领导反填
        Task<List<UserInfo>> Leading(int sectorid);
        Task<PageListDto<Leaved>> GetLeading(int pageIndex,int pageSize,string? userName);
        //删除
        Task<int> LeaveDelete(int id);
        //反填
        Task<Leaved> GetLeaved(int id);
        Task<int> UpdateLeave(Leaved model);
        Task<int> VettingLeave(Leaved model);
    }
}
